package zl.ordermanager.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Trepair entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trepair", catalog = "ordermanager")
public class Trepair implements java.io.Serializable {

	// Fields

	private Integer id;

	private String customer;

	private String salesman;

	private String product;

	private String imei;

	private String fault;

	private String takeFromCustomer;

	private String takeFromCustomerHandling;

	private String repairDatetime;

	private String repairHandling;

	private String repairRemarks;

	private String takeBackDatetime;

	private String takeBackHandling;

	private String returnCustomerDatetime;

	private String returnCustomerHandling;

	private String deliveryNo;

	private String remarks;

	// Constructors

	/** default constructor */
	public Trepair() {
	}

	/** minimal constructor */
	public Trepair(String product) {
		this.product = product;
	}

	/** full constructor */
	public Trepair(String customer, String salesman, String product, String imei, String fault,
			String takeFromCustomer, String takeFromCustomerHandling, String repairDatetime, String repairHandling,
			String repairRemarks, String takeBackDatetime, String takeBackHandling, String returnCustomerDatetime,
			String returnCustomerHandling, String deliveryNo, String remarks) {
		this.customer = customer;
		this.salesman = salesman;
		this.product = product;
		this.imei = imei;
		this.fault = fault;
		this.takeFromCustomer = takeFromCustomer;
		this.takeFromCustomerHandling = takeFromCustomerHandling;
		this.repairDatetime = repairDatetime;
		this.repairHandling = repairHandling;
		this.repairRemarks = repairRemarks;
		this.takeBackDatetime = takeBackDatetime;
		this.takeBackHandling = takeBackHandling;
		this.returnCustomerDatetime = returnCustomerDatetime;
		this.returnCustomerHandling = returnCustomerHandling;
		this.deliveryNo = deliveryNo;
		this.remarks = remarks;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "customer", length = 200)
	public String getCustomer() {
		return this.customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	@Column(name = "salesman", length = 45)
	public String getSalesman() {
		return this.salesman;
	}

	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}

	@Column(name = "product", nullable = false, length = 200)
	public String getProduct() {
		return this.product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	@Column(name = "imei", length = 45)
	public String getImei() {
		return this.imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	@Column(name = "fault", length = 200)
	public String getFault() {
		return this.fault;
	}

	public void setFault(String fault) {
		this.fault = fault;
	}

	@Column(name = "takeFromCustomer", length = 24)
	public String getTakeFromCustomer() {
		return this.takeFromCustomer;
	}

	public void setTakeFromCustomer(String takeFromCustomer) {
		this.takeFromCustomer = takeFromCustomer;
	}

	@Column(name = "takeFromCustomerHandling", length = 45)
	public String getTakeFromCustomerHandling() {
		return this.takeFromCustomerHandling;
	}

	public void setTakeFromCustomerHandling(String takeFromCustomerHandling) {
		this.takeFromCustomerHandling = takeFromCustomerHandling;
	}

	@Column(name = "repairDatetime", length = 24)
	public String getRepairDatetime() {
		return this.repairDatetime;
	}

	public void setRepairDatetime(String repairDatetime) {
		this.repairDatetime = repairDatetime;
	}

	@Column(name = "repairHandling", length = 45)
	public String getRepairHandling() {
		return this.repairHandling;
	}

	public void setRepairHandling(String repairHandling) {
		this.repairHandling = repairHandling;
	}

	@Column(name = "repairRemarks", length = 45)
	public String getRepairRemarks() {
		return this.repairRemarks;
	}

	public void setRepairRemarks(String repairRemarks) {
		this.repairRemarks = repairRemarks;
	}

	@Column(name = "takeBackDatetime", length = 24)
	public String getTakeBackDatetime() {
		return this.takeBackDatetime;
	}

	public void setTakeBackDatetime(String takeBackDatetime) {
		this.takeBackDatetime = takeBackDatetime;
	}

	@Column(name = "takeBackHandling", length = 45)
	public String getTakeBackHandling() {
		return this.takeBackHandling;
	}

	public void setTakeBackHandling(String takeBackHandling) {
		this.takeBackHandling = takeBackHandling;
	}

	@Column(name = "returnCustomerDatetime", length = 24)
	public String getReturnCustomerDatetime() {
		return this.returnCustomerDatetime;
	}

	public void setReturnCustomerDatetime(String returnCustomerDatetime) {
		this.returnCustomerDatetime = returnCustomerDatetime;
	}

	@Column(name = "returnCustomerHandling", length = 45)
	public String getReturnCustomerHandling() {
		return this.returnCustomerHandling;
	}

	public void setReturnCustomerHandling(String returnCustomerHandling) {
		this.returnCustomerHandling = returnCustomerHandling;
	}

	@Column(name = "deliveryNo", length = 45)
	public String getDeliveryNo() {
		return this.deliveryNo;
	}

	public void setDeliveryNo(String deliveryNo) {
		this.deliveryNo = deliveryNo;
	}

	@Column(name = "remarks", length = 250)
	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

}